package org.zhangchao.poi.excel.interceptor;

import java.util.List;

import org.apache.poi.ss.usermodel.Row;
import org.zhangchao.poi.excel.interceptor.ExcelHandlerInterceptor;
import org.zhangchao.poi.excel.interceptor.ExcelHandlerInterceptorStack;
import org.zhangchao.poi.excel.interceptor.MakeHandler;

public class MyExcelHandlerInterceptor implements ExcelHandlerInterceptor {

	//@Override
	public void handler(Row row, MakeHandler makeHandler,
			ExcelHandlerInterceptorStack handlerStack) {
		//可以对数据进行处理
		List<?> data = makeHandler.prepareModelData();
		if(data != null) {
			System.out.println("data--size: " + data.size());
		}
		handlerStack.handler(row, makeHandler, handlerStack);
	}

}
